package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.Banner;
import com.vcredit.creditcat.persistence.base.BannerMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 **/
@Service
public class BannerService {
	@Autowired
	private BannerMapper mapper;

	public void insert(Banner obj) {
		mapper.insert(obj);
	}

	public void update(Banner obj) {
		mapper.update(obj);
	}

	public List<Banner> findAll() {
		return mapper.findAll();
	}

	@SuppressWarnings("unused")
	private List<Banner> find(Banner obj) {
		return mapper.find(obj);
	}

	public List<Banner> queryBannerByKind(String bannerKind,String appDesc) {
		return mapper.queryBannerByKind(bannerKind,appDesc);
	}
}